package cn.script.game.opt;

import cn.script.domain.RangePoint;
import cn.script.domain.Skill;
import cn.script.game.GameOpt;

public class DefaultOpt {

    /**
     * 默认释放技能
     *
     * @param go
     */
    public static void defaultSkill(GameOpt go, int num) {
        RangePoint range = new RangePoint(359, 196, 428, 268);
        rgSkill(go, range, num);
    }

    public static void rgSkill(GameOpt go, RangePoint range, int num) {
        Skill skill = new Skill("f4", 0, 50);
        for (int i = 0; i < num; i++) {
            go.wio().moveToEx(range, 100);
            go.wio().keypress(skill.key(), 200);
        }
    }
}
